#include "interface.hpp"

#define LOADINTERFACE(_module_, _version_, _out_) \
	if(!Sys_LoadInterface(_module_, _version_, NULL, reinterpret_cast<void**>(& _out_ ))) \
		Lua()->Error("[gm_io] Failed to Load IFileSystem Interface!");

namespace io {
	IFileSystem * Interface::FileSystem;
	void Interface::Initialize(lua_State *L) {
		LOADINTERFACE("filesystem_steam", "VFileSystem019", FileSystem);
	}
}